home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / What's New? / Software Development Kits / Mac OS USB DDK / MacOS USB DDK 1.0b4 / NeptuneDDK / Examples / SerialBox / ShimSerialStub.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-26  |  809 b   |  39 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ShimSerialStub.h
  3.  
  4.     Contains:    Definitions for the serial .in & .out drivers
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1996, 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.  
  11. */
  12.  
  13. #ifndef    _APPLE_PCCARDSERIALSTUB_
  14. #define    _APPLE_PCCARDSERIALSTUB_
  15.  
  16. //
  17. //    macros simply convert an I/O reference number into 
  18. //    a unit table entry number.
  19. //
  20. #define RefnumToUnit(refnum)    ( -(refnum+1) )
  21. #define UnitToRefnum(unit)        ( -(unit + 1) )
  22.  
  23.  
  24. //
  25. //    USB serial driver names -- we hard code 'em
  26. //    here as we don't want to bother with resources nor
  27. //    with localization issues... and in any case, once
  28. //    this is standard it ain't gonna change, right?
  29. //
  30.  
  31. #define kDrvrInName "\p.UIn"                    //    the default input driver name 
  32. #define kDrvrOutName "\p.UOut"                    //    the default output driver name 
  33.  
  34.  
  35.  
  36.  
  37.  
  38. #endif
  39.